Parametrize anything using maven Resource filtering.
Was trying to Parametrize persistence.xml in src/main/resources/META-INF . Came accross concept of Resource Filtering by maven Resources plugin. 1. Replace values with variables in whichever file you want. <property name=”hibernate.connection.driver_class” value=”${my.driverClassName}” /> <property name=”hibernate.connection.url” value=”${my.url}” /> <property name=”hibernate.connection.username” value=”${my.user}” /> <property name=”hibernate.connection.password” value=”${my.password}” /> <property name=”hibernate.dialect” value=”${my.dialect}”/> 2. Create profile in pom xml <profiles> <profile> <id>myprofile</id> <properties> … Continue reading Parametrize anything using maven Resource filtering.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed